package com.cqq.print.business.service.bean;

import java.util.Date;
import java.util.List;

public class POrderBean {

	private Integer id;

    private String orderNum;

    private String name;

    private String seriesName;

    private Integer pubId;

    private Integer contactId;

    private Integer saleId;

    private Integer orderCateId;

    private Date endTime;

    private Date startTime;
    
    private String endDate;
    
    private String startDate;

    private Integer createId;

    private Integer checkStatus;

    private Integer flowStatus;

    private Integer status;

    private Date createDate;

    private Date updateDate;

    private String remark;
    
    private Integer foreman;
    
    private Integer orderType;
    
    private Integer pBookId;//版面开本id
    
    private Integer pArticleId;//版面正文Id
    
    private Integer pTitleId;//版面标题id
    
    private int detailCount;//明细记录数
    
    private int restDate;//剩余天数
    
    private List<POrderDetailBean> listDetail;
    
    private String pubSimpleName;//客户简称
    private String pubName;//客户名称
    private String contactName;//客户联系人

    public int getRestDate() {
    	return (int)((this.getEndTime().getTime()-System.currentTimeMillis())/(1000*60*60*24));
	}

	public int getDetailCount() {
		return detailCount;
	}


	public void setDetailCount(int detailCount) {
		this.detailCount = detailCount;
	}


	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getPubSimpleName() {
		return pubSimpleName;
	}

	public void setPubSimpleName(String pubSimpleName) {
		this.pubSimpleName = pubSimpleName;
	}

	public String getPubName() {
		return pubName;
	}

	public void setPubName(String pubName) {
		this.pubName = pubName;
	}

	public String getContactName() {
		return contactName;
	}

	public void setContactName(String contactName) {
		this.contactName = contactName;
	}
    
	public List<POrderDetailBean> getListDetail() {
		return listDetail;
	}

	public void setListDetail(List<POrderDetailBean> listDetail) {
		this.listDetail = listDetail;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSeriesName() {
		return seriesName;
	}

	public void setSeriesName(String seriesName) {
		this.seriesName = seriesName;
	}

	public Integer getPubId() {
		return pubId;
	}

	public void setPubId(Integer pubId) {
		this.pubId = pubId;
	}

	public Integer getContactId() {
		return contactId;
	}

	public void setContactId(Integer contactId) {
		this.contactId = contactId;
	}

	public Integer getSaleId() {
		return saleId;
	}

	public void setSaleId(Integer saleId) {
		this.saleId = saleId;
	}

	public Integer getOrderCateId() {
		return orderCateId;
	}

	public void setOrderCateId(Integer orderCateId) {
		this.orderCateId = orderCateId;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Integer getCreateId() {
		return createId;
	}

	public void setCreateId(Integer createId) {
		this.createId = createId;
	}

	public Integer getCheckStatus() {
		return checkStatus;
	}

	public void setCheckStatus(Integer checkStatus) {
		this.checkStatus = checkStatus;
	}

	public Integer getFlowStatus() {
		return flowStatus;
	}

	public void setFlowStatus(Integer flowStatus) {
		this.flowStatus = flowStatus;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getForeman() {
		return foreman;
	}

	public void setForeman(Integer foreman) {
		this.foreman = foreman;
	}

	public Integer getOrderType() {
		return orderType;
	}

	public void setOrderType(Integer orderType) {
		this.orderType = orderType;
	}

	public Integer getpBookId() {
		return pBookId;
	}

	public void setpBookId(Integer pBookId) {
		this.pBookId = pBookId;
	}

	public Integer getpArticleId() {
		return pArticleId;
	}

	public void setpArticleId(Integer pArticleId) {
		this.pArticleId = pArticleId;
	}

	public Integer getpTitleId() {
		return pTitleId;
	}

	public void setpTitleId(Integer pTitleId) {
		this.pTitleId = pTitleId;
	}
	
	
	
    
}
